import { FC,useEffect, useState } from 'react';
import { useNavigate } from 'react-router';

const Index: FC<any> = (props:any): JSX.Element => {

    console.log("useCallback子组件");
    
    useEffect(()=>{
    },[])

    return (
      <div onClick={props.fn}>useCallback子组件</div>
    )
}
export default Index;